<?PHP
	
	include("../includes/configPages.php");
	
	/* registration variables */
	if($_SESSION['logged_in']==true){
	
		echo "<script>fetchPage('profile' ,null)</script>";
		
	} else {

		$html = file_get_contents('../styles/'.$activeStyle.'/t/reg.html');
		while(strpos($html, "{{")){
			$variable = substr($html, strpos($html, "{{"), (strpos($html, "}}")-strpos($html, "{{"))+2); // returns {variableName}
			$tempVar = substr($variable, 2, -2);
			$html = str_replace($variable, $variableStack[$tempVar], $html);
		}
		
		echo $html;
		
	}
	
?>
